QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# 生成目录
DESTDIR = $${PWD}/bin

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    main.cpp \
    widget.cpp

HEADERS += \
    widget.h

FORMS += \
    widget.ui


#
SOURCES += JlCompressEx.cpp
HEADERS += JlCompressEx.h


# 添加quazip库信息
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../quazip-1.3lib/lib -lquazip1-qt5
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../quazip-1.3lib/lib -lquazip1-qt5d
# quazip头文件路径
INCLUDEPATH += $$PWD/../quazip-1.3lib/include/QuaZip-Qt5-1.3
# 使用Qt内置的zlib.h文件，添加到includepath，方便直接使用#include <zlib.h>，不然就修改为#include <QtZlib/zlib.h>
INCLUDEPATH += "$$[QT_INSTALL_HEADERS]/QtZlib"
# 复制quazip的dll到生成目标目录
win32:CONFIG(release, debug|release): QMAKE_PRE_LINK += xcopy /D /F /E /Y \"$${PWD}/../quazip-1.3lib/bin/quazip1-qt5.dll\" \"$${DESTDIR}\"
win32:CONFIG(debug, debug|release): QMAKE_PRE_LINK += xcopy /D /F /E /Y \"$${PWD}/../quazip-1.3lib/bin/quazip1-qt5d.dll\" \"$${DESTDIR}\"





# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


